<?php

namespace App;

final class Request
{
    private $_params = array();

    public function __construct()
    {

    }

    public function setParams($p)
    {
        $this->_params += $p;
    }

    public function get()
    {
        $_GET += $this->_params;

    }

    public function post()
    {

    }

    public function cookie($k)
    {
        return isset($_COOKIE[$k]) ? $_COOKIE[$k] : NULL;
    }

    public function getPathInfo()
    {
        return isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : strtr($_SERVER['REQUEST_URI'], array('index.php' => ''));
    }

    public function __get($key)
    {

    }
}
